<template>
  <div>
    <div class="header3">
      <div class="header4">
        <span class="iconfont icon-xiaoyuhao" @click="back"></span>
        <p class="h1">交易宝</p>
        <span class="iconfont icon-xinxi"></span>
      </div>
    </div>
    <div class="scrol">
      <div class="nav">
        <div class="left">
          <h2>交易宝</h2>
          <p class="l1">值得信赖的房产交易服务平台</p>
        </div>
        <div class="right">
          <p class="r1">了解产品</p>
          <span class="iconfont icon-triangle24"></span>
        </div>
      </div>
      <div class="main">
        <div class="about">
          <h3>我们的优势</h3>
          <div class="xia4">
            <div class="left4">
              <span class="iconfont icon-anquan"></span>
              <div class="zuo">
                <h2>安全</h2>
                <p class="x1">银行直连合作AI全风险预警</p>
              </div>
            </div>
            <div class="right4">
              <span class="iconfont icon-toumingdu"></span>
              <div class="you">
                <h2>透明</h2>
                <p class="x1">信息全程透明 进度随时可查</p>
              </div>
            </div>
          </div>
        </div>
        <div class="hezuo">
          <h3>合作银行</h3>
          <div class="kinds">
            <section v-for="bank in banks" :key="bank.id">
              <img :src="bank.img" />
              <span>{{ bank.name }}</span>
            </section>
          </div>
        </div>
        <companys />
      </div>
      <div class="footer">
        <h2>58交易宝</h2>
        <p>值得信赖的房产交易服务平台</p>
      </div>
    </div>
  </div>
</template>
<script>
import companys from "./company.vue";
import axios from "axios";
export default {
  name: "jiaoyibao",
  data() {
    return {
      banks: [],
    };
  },
  components: {
    companys,
  },
  methods: {
    back() {
      this.$router.go(-1);
    },
  },
  created() {
    axios({
      url: "http://localhost:3000/banks",
      method: "get",
    }).then((res) => {
      // console.log(res.data);
      this.banks = res.data;
      // console.log(this.banks);
    });
  },
};
</script>
<style scoped>
.header3 {
  width: 100%;
  height: 0.5rem;
  /* display: flex; */
  position: fixed;
  /* justify-content: space-between; */
  margin-top: -0.4rem;
  background-color: #fff;
}
.header4 {
  width: 100%;
  height: 0.5rem;
  line-height: 0.5rem;
  display: flex;
  /* position: fixed; */
  justify-content: space-between;
  /* margin-top: -0.4rem; */
  /* background-color: #fff; */
}
.header4 .icon-xiaoyuhao {
  width: 0.2rem;
  font-size: 0.22rem;
  color: #4d4d4d;
  margin-left: 0.2rem;
}
.header4 .icon-xinxi {
  width: 0.2rem;
  font-size: 0.22rem;
  color: #4d4d4d;
  margin-right: 0.2rem;
}
.h1 {
  font-size: 0.18rem;
  font-weight: 700;
  color: #4d4d4d;
}
.scrol {
  display: flex;
  flex: 1;
  overflow: auto;
  flex-direction: column;
  margin-top: 0.4rem;
}
.nav {
  background-color: #24c790;
  height: 2rem;
  margin-top: 0.1rem;
  display: flex;
}
.nav .left {
  height: 0.5rem;
  display: flex;
  flex-direction: column;
  margin-top: 0.1rem;
}
.nav .left h2 {
  font-size: 0.24rem;
  color: #fff;
  margin-top: 0.1rem;
  margin-left: 0.1rem;
}
.nav .left .l1 {
  color: #fff;
  margin-top: 0.1rem;
  margin-left: 0.1rem;
}
.nav .right {
  margin-top: 0.1rem;
  height: 0.5rem;
  line-height: 0.5rem;
  display: flex;
  margin-left: 0.3rem;
  color: #fff;
  font-size: 0.16rem;
}
.about {
  margin-top: 0.3rem;
}
.xia4 {
  display: flex;
  margin-top: 0.2rem;
  justify-content: space-between;
}
.xia4 .left4 {
  display: flex;
  width: 46%;
  height: 0.8rem;
  background-color: #f4fffc;
  border: 1px solid #fafcfb;
  /* justify-content: center; */
}
.xia4 .left4 .icon-anquan {
  font-size: 0.2rem;
  color: #24c790;
  line-height: 0.8rem;
  margin-right: 0.1rem;
  margin-left: 0.1rem;
}
.xia4 .left4 .zuo h2 {
  margin-top: 0.05rem;
}
.xia4 .left4 .zuo .x1 {
  font-size: 0.14rem;
  color: #a2a4a3;
  margin-top: 0.05rem;
}
.xia4 .right4 {
  display: flex;
  width: 45%;
  height: 0.8rem;
  background-color: #f4fffc;
  border: 1px solid #fafcfb;
  /* justify-content: center; */
}
.xia4 .right4 .icon-toumingdu {
  font-size: 0.2rem;
  color: #24c790;
  line-height: 0.8rem;
  margin-right: 0.1rem;
  margin-left: 0.1rem;
}
.xia4 .right4 .you h2 {
  margin-top: 0.05rem;
}
.xia4 .right4 .you .x1 {
  font-size: 0.14rem;
  color: #a2a4a3;
  margin-top: 0.05rem;
}
.hezuo {
  margin-top: 0.2rem;
}
.hezuo .kinds {
  margin-top: 0.2rem;
  height: 3rem;
  background-color: #fafcfb;
  border: 1px solid #f3f5f4;
}
.kinds {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 0.6rem;
  background-color: rgb(245, 240, 240);
  color: #b2b2b2;
  width: 100%;
  flex-wrap: wrap;
}
.kinds section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 23%;
  height: 35%;
  flex-shrink: 0;
}
.kinds img {
  width: 100%;
  height: 100%;
}
.footer {
  height: 0.8rem;
  width: 100%;
  text-align: center;
  /* line-height: .8rem; */
}
.footer h2 {
  font-size: 0.28rem;
  margin-top: 0.2rem;
}
.footer p {
  font-size: 0.2rem;
}
</style>